package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 抽奖配置对象 sn_draw_config
 *
 * @author ruoyi
 * @date 2022-12-27
 */
public class SnDrawConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 抽奖期号
     */
    @Excel(name = "抽奖期号")
    private String termNo;

    /**
     * 兑奖开始日期
     */
    @Excel(name = "兑奖开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDay;

    /**
     * 兑奖结束日期
     */
    @Excel(name = "兑奖结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date finishDay;

    /**
     * 一级标题
     */
    @Excel(name = "一级标题")
    private String firstTitle;
    /**
     * 二级标题
     */
    @Excel(name = "二级标题")
    private String secondTitle;

    /**
     * 抽奖数量
     */
    @Excel(name = "抽奖数量")
    private Integer maxLucky;

    /**
     * 抽奖日期
     */
    @Excel(name = "抽奖日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date drawDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTermNo() {
        return termNo;
    }

    public void setTermNo(String termNo) {
        this.termNo = termNo;
    }

    public Date getStartDay() {
        return startDay;
    }

    public void setStartDay(Date startDay) {
        this.startDay = startDay;
    }

    public Date getFinishDay() {
        return finishDay;
    }

    public void setFinishDay(Date finishDay) {
        this.finishDay = finishDay;
    }

    public Date getDrawDate() {
        return drawDate;
    }

    public void setDrawDate(Date drawDate) {
        this.drawDate = drawDate;
    }


    public String getFirstTitle() {
        return firstTitle;
    }

    public void setFirstTitle(String firstTitle) {
        this.firstTitle = firstTitle;
    }

    public String getSecondTitle() {
        return secondTitle;
    }

    public void setSecondTitle(String secondTitle) {
        this.secondTitle = secondTitle;
    }

    public Integer getMaxLucky() {
        return maxLucky;
    }

    public void setMaxLucky(Integer maxLucky) {
        this.maxLucky = maxLucky;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("termNo", getTermNo())
                .append("startDay", getStartDay())
                .append("finishDay", getFinishDay())
                .append("firstTitle", getFirstTitle())
                .append("secondTitle", getSecondTitle())
                .append("maxLucky", getMaxLucky())
                .append("drawDate", getDrawDate())
                .toString();
    }
}
